How Dynamics 365 Business Central Automates Receivables Account Selection for Multi-Product Finance Teams
Summary A housing finance company running Microsoft Dynamics 365 Business Central had more than 140 product and invoice combinations, each with its own receivable account. Every time someone posted a customer invoice or receipt, they had to know which account to use. Mistakes moved balances between products, month-end turned into reclassification work, and auditors kept asking why. We changed the process so that finance defines the rules once, and Business Central applies them on every posting, manual or automatic. Users now post to the customer as usual, the right receivable account is picked for them, and the customer ledger stays complete. Table of Contents Introduction What Manual Account Selection Really Costs Does This Sound Like Your Finance Team? The Approach: Rules, Not Memory What Changes for Your Team Day to Day Before and After How CloudFronts Delivers It Business Impact Questions Finance Leaders Ask Us Conclusion Introduction Ask a finance team at a lender how they post a customer receipt, and you will often hear: “We pick the right receivable account on each line.” It sounds like control. In practice it is one of the most common reasons month-end takes longer than it should. A housing finance company we work with offers conventional mortgages, Islamic financing such as Istisna, Murabaha and Musharaka, government-backed schemes and unsecured loans. Each product has its own receivable accounts, and principal, interest, insurance and penalties often go to different accounts again. That adds up quickly. 140+ Product and invoice combinations, each with its own receivable account 1 Rule table that finance owns and maintains 0 Receivable accounts chosen by hand on customer postings Their finance team asked for two things: keep every entry on the customer’s account, and stop asking people to choose the receivable account. This article explains how we did it with standard Business Central capabilities and what it changed for the business. The Principle People should record what happened. The system should decide where it goes in the books. What Manual Account Selection Really Costs When account selection depends on people, the cost does not show up on the day of posting. It shows up later, in places that are expensive to fix. 01 Month-End Rework A wrong pick moves a balance from one product to another. Someone has to find it, understand it and post a correction before the books can close. 02 Unreliable Product Reporting Portfolio, product profitability and regulatory reports all read from the receivable accounts. If the postings are wrong, so are the numbers management relies on. 03 Audit Questions “Who decided this entry goes to this account, and why?” is hard to answer when the answer is “the person who posted it”. Auditors want a rule, not a person. A common workaround makes it worse: posting straight to a G/L account instead of the customer. The balance lands in the right account, but the customer’s statement, ageing and payment history no longer match the books. Does This Sound Like Your Finance Team? This is not only a lending problem. Any business with several products, revenue streams or contract types runs into it. You will recognize it if: Users choose a receivable account or posting group when entering customer invoices or receipts. Month-end includes reclassification entries between receivable accounts. Product or segment reports need manual adjustments before they are trusted. Some receivables are posted to G/L accounts, so customer statements don’t match the balance sheet. New staff need weeks of training just to learn which account goes with which product. Automated invoicing and manual journals sometimes post the same thing to different accounts. Key Insight The question is not “how do we train people to pick the right account?” It is “why are people picking accounts at all?” The Approach: Rules, Not Memory Business Central can link one customer to several receivable accounts through the standard Allow Multiple Posting Groups feature and Alternative Customer Posting Groups. We used that capability and added one simple layer on top: a rule table that finance owns. Finance defines the rules For each product and type of charge, which receivable account to use. Set up once, changed whenever products change. Users record the transaction The customer, the facility and the amount, exactly as before. No account to choose. Business Central applies the rule At posting, every customer entry goes to the right receivable account, whether a person or a nightly job created it. An example of what the rules look like: Product Charge Receivable Account Conventional mortgage Monthly principal Conventional – Principal Receivable Conventional mortgage Monthly interest Conventional – Interest Receivable Islamic financing Monthly profit Islamic – Profit Receivable Unsecured loan Any charge Unsecured – Receivable A rule can be specific (“this product, this charge”) or general (“anything for this product”). The most specific rule wins, so a handful of general rules covers most cases and exceptions are added only where needed. What Changes for Your Team Day to Day Posting a customer entry, after the change Enter Customer and Facility → Enter Amount → Account Selected Automatically → Post → Right Account, Every Time Accountants Less to Think About They post to the customer as usual. The posting group, and so the receivable account, is shown on the line for reference but is no longer theirs to choose. Finance Manager One Place to Control It The rules sit in one setup page. A new product or account change is a new row, not a retraining exercise or a code change. CFO and Auditors A Clear Answer Every receivable posting follows a documented rule, so “why did this go here?” has a simple, consistent answer. Figure 1: Finance maintains the rules in one setup page. Figure 2: Users enter the customer and facility, and the receivable account follows the rule. Figure 3: Preview Posting confirms the entry goes to the right receivable account before anything is posted. What Stays the Same Customer statements, ageing, reminders and payment application work exactly as standard Business Central, because every entry still posts to the … Continue reading How Dynamics 365 Business Central Automates Receivables Account Selection for Multi-Product Finance Teams
How Dynamics 365 Business Central Automates Receivables Account Selection for Multi-Product Finance Teams
Summary When machine learning models predict demand from Microsoft Dynamics 365 Business Central data, the biggest issue is usually not the algorithm. It is that ERP systems were built for accounting, not data science. While building an automated data pipeline across 12 Business Central tables on Azure Databricks, we ran into three silent traps: the Ghost in the Warehouse (confusing what shipped with what customers wanted), the Negative Demand Paradox (returns and credit memos distorting seasonal patterns), and the Missing Days Dilemma (days with zero sales disappearing from the data). Here is what each one looks like in real tables, and how we solved them with PySpark. Table of Contents ERP Data Is Never Clean Paradox 1: The Ghost in the Warehouse Paradox 2: The Negative Demand Paradox Paradox 3: The Missing Days Dilemma How We Solved It in PySpark Real-World Results What This Means for Data Teams Frequently Asked Questions ERP Data Is Never Clean An ERP system like Business Central is designed to keep the books balanced and track physical stock. It was not designed with machine learning in mind. When we built a demand forecasting pipeline for a distributor of educational equipment and furniture, we pulled in 12 tables from Business Central, including sales headers, sales lines, item ledger entries and warehouse locations, plus a separate table for exceptions such as returns. At first glance, the data looks clean. Quantities are recorded, dates are logged and invoices are posted. Underneath, there are three logical traps that quietly ruin demand forecasts. 3 Hidden ERP traps 12 Business Central tables unified 95% Less manual data cleanup Paradox 1: The Ghost in the Warehouse If you only forecast what you shipped, you will only ever stock what you already had. A common shortcut is to pull data straight from Item Ledger Entries. It feels safe because it shows verified, posted inventory. The catch is that the item ledger only records what left the warehouse, not what customers asked for. The Trap Looking Only at Shipped Items A school orders 100 student desks in August, but the warehouse has only 20 in stock, so only 20 ship. The ledger records 20 units. The model learns that August demand was 20, the buying team orders 20 next year, and you run out of stock again. The Fix Reading True Demand from Sales Lines Sales lines hold both Quantity (what was ordered) and Quantity Shipped. Using both, the model learns that real demand was 100 and flags the 80 units lost to a stockout. Good to Know Business Central deletes a sales order and its lines once it is fully shipped and invoiced. To keep the original ordered quantity for completed orders, switch on Archive Orders in Sales & Receivables Setup and read from the sales order archive as well as open sales lines. Simple Rule When an item runs out of stock, sales drop to zero, but customer demand does not disappear. Always look at ordered quantities, not just shipments. Paradox 2: The Negative Demand Paradox A customer returns 30 desks in October from an August order. Did October really have negative demand? Forecasting models expect demand to be zero or positive. In Business Central, a return is posted as a credit memo in the month it is processed, and it reduces the sales quantity for that month. This is what happens during the busy school purchasing season: August Purchase Initial Order A school district buys 100 chairs for the new school year. All 100 are delivered. Demand: +100 units October Return Credit Memo The school ordered too many and returns 30 chairs. A credit memo is posted in October. ERP shows: −30 units Model Confusion Pattern Ruined The model sees October demand below zero, and August looks higher than it really ended up. False seasonal signal To fix this, we handle returns in a separate cleanup step. Instead of subtracting them from October sales, each return is either linked back to its original August order or tracked as a return rate, so the seasonal demand pattern stays clean. Paradox 3: The Missing Days Dilemma What does a day with no sales look like in a database? It does not exist. Business Central only saves a row when something is sold. Classroom furniture at a regional warehouse, such as US-MAIN or US-EAST, might sell on Monday and Thursday with no orders on Tuesday or Wednesday. Date ERP Table Has Model Sees What Really Happened Monday 40 units sold Valid row Real sales day Tuesday No record Missing data point Zero sales, item available Wednesday No record Missing data point Zero sales, item available Thursday 15 units sold Valid row Real sales day A model fed raw data with missing dates cannot calculate rolling averages or trends properly. It jumps straight from Monday to Thursday. The Calendar Spine We build a full calendar for every active item and warehouse combination. If there were no orders on Tuesday, the pipeline records an explicit 0 instead of leaving a gap. How We Solved It in PySpark This is the core logic we used in Azure Databricks to handle unfulfilled demand and missing days in one transformation: from pyspark.sql import functions as F def build_clean_demand_mart(sales_lines_df, active_skus_df, calendar_df): # 1. Capture what customers ordered, not just what shipped clean_sales = ( sales_lines_df.select( F.col(“item_no”), F.col(“location_code”), F.col(“order_date”).cast(“date”).alias(“calendar_date”), F.col(“quantity”).cast(“double”).alias(“requested_qty”), F.col(“quantity_shipped”).cast(“double”).alias(“shipped_qty”), ) .groupBy(“item_no”, “location_code”, “calendar_date”) .agg( F.sum(“requested_qty”).alias(“daily_requested_demand”), F.sum(“shipped_qty”).alias(“daily_shipped_demand”), ) ) # 2. Build a complete date spine for every active item and warehouse sku_date_spine = active_skus_df.crossJoin(calendar_df) # 3. Join orders to the spine and fill quiet days with 0 final_mart = ( sku_date_spine.join( clean_sales, on=[“item_no”, “location_code”, “calendar_date”], how=”left”, ) .select( F.col(“item_no”), F.col(“location_code”), F.col(“calendar_date”), F.coalesce(F.col(“daily_requested_demand”), F.lit(0.0)).alias(“demand_qty”), F.coalesce(F.col(“daily_shipped_demand”), F.lit(0.0)).alias(“shipped_qty”), F.col(“daily_requested_demand”).isNull().alias(“is_zero_sales_day”), ) ) return final_mart active_skus_df holds one row per active item and location, and calendar_df holds one row per date in the forecast window. The cross join creates every item, location and date combination, and the left join keeps days with no orders as explicit zeros. Real-World Results Handling these three ERP … Continue reading How Dynamics 365 Business Central Automates Receivables Account Selection for Multi-Product Finance Teams
How to Create Draft Time Entries from Hard Bookings in Dynamics 365 Project Operations
Summary Our team retyped every Hard booking in Dynamics 365 Project Operations as a time entry by hand. We fixed that with an "Import hard bookings" pop-up in Time Entry Studio. You click a booked day and it becomes a Draft time entry for the hours you have not entered yet. Soft bookings stay with the manager. The bookings-to-time-entries flow now runs in Production in two places. Time Entry Studio imports by day. Booking Studio’s My week converts Hard bookings with a shortfall from a weekly view. The biggest lesson sits in what we chose to skip. We create each entry ourselves instead of calling the native msdyn_TimeEntriesImport action, so we control the role, the hours and the date on every record. Table of Contents Summary→ Business Challenges→ Solution Overview→ Technical Approach→ Impact→ Conclusion→ Call to Action→ Business Challenges The booking already held the project, the task, the day and the hours, yet each person still retyped all of it into a time entry. Double entry. A Hard booking for 4 hours on a task became a manual 4 hour time entry on the same task, every day of the week. Partial weeks. Someone who had already entered 1 hour of a 3 hour booking needed only the remaining 2 hours, and nothing told them that. Unapproved work. Soft bookings are requests waiting for a manager. Turning them into time would book hours nobody had approved. Billing depends on the role. The role on a time entry decides whether the hour is billable, so a wrong default changes what a client is charged. Solution Overview We gave every person a pop-up that lists their Hard bookings for the week by project, task and day, and lets them pick the days to turn into time. 1 2 3 Selected booked day Already entered: locked tick Import counts the days Each amber cell is a Hard booking with hours still to enter. A click selects the day. The button counts the selection. A cell shows the hours still missing, not the hours booked. If 1 of 3 hours is already entered, the cell offers 2 and says "of 3". Days that are fully entered show a tick and cannot be clicked. Each imported day lands as a Draft entry. The person reviews it, improves the comment and submits it in the grid they already use. The manager sees it only after that Submit. Soft bookings stay out of the pop-up completely. A chip at the top of the week tells the person how many are still waiting for the manager. Technical Approach The flow reads the week’s bookings and entries, works out the gap per task and day, and writes one Draft msdyn_timeentry per selected day. ReadBookings and entriesbookableresourcebookings for my resource, not Canceled, plus my msdyn_timeentries for the week. FilterHard onlyStatus from the formatted _bookingstatus_value. Soft rows feed the chip. CompareGap per task and dayBooked hours minus entered hours on the same task and day. PickPerson clicks daysOnly cells with a gap are clickable. Select all is there too. WriteDraft entryOne POST per day, 3 at a time, with the role resolved first. Should you use msdyn_TimeEntriesImport or create entries yourself? We create each entry with a plain POST to msdyn_timeentries, because that lets us set every field ourselves. The project notes list the native msdyn_TimeEntriesImport under "Not in v1". The table shows what our build controls on each record. Decision What we used What we did not use What it gives us Creating the entry POST msdyn_timeentries, one call per day msdyn_TimeEntriesImport We choose the hours, role, date and comment on every record Hours Booked minus already entered, per task and day The full booked duration No double counting after a partial week Role Resolved per project and task, with the booking’s project team member as a fallback A single fixed role The role decides billable time, so it follows the task Which bookings Hard only, read from the formatted _bookingstatus_value Soft and Canceled Only approved work becomes time Date msdyn_date at local midnight A UTC midnight timestamp The entry lands on the day the person sees Status Draft (msdyn_entrystatus) Submitting straight away The person reviews before a manager sees it Source: Time Entry Studio code and project notes, 2026. How do you tell a Hard booking from a Soft one in the Web API? We read the booking status name from the formatted value of _bookingstatus_value and compare it with "Hard". The query already excludes the Canceled status by id, so Soft and Hard are the only names left to sort. ts-a.js (trimmed)javascript const FV = "@OData.Community.Display.V1.FormattedValue"; const url = "https://yourorg.crm.dynamics.com/api/data/v9.2/bookableresourcebookings" + "?$select=starttime,duration,_msdyn_projectid_value,_new_msdyn_projecttask_value," + "_bookingstatus_value,_msdyn_projectteamid_value" + "&$filter=_resource_value eq " + resourceId + " and statecode eq 0" + " and _bookingstatus_value ne " + canceledStatusId + " and starttime ge " + from + " and starttime le " + to; const booking = (b) => ({ day: ymd(new Date(b.starttime)), h: (b.duration || 0) / 60, status: b["_bookingstatus_value" + FV] || "", // "Hard" or "Soft" teamId: b._msdyn_projectteamid_value }); Booking Studio applies the same rule from the other side. It expands the BookingStatus navigation property and checks name === "Hard". When it creates a Soft booking it writes bookingtype: 2, which is Liquid. How do you pick the right role on an imported time entry? The role decides whether an hour is billable, so we resolve it before every write and stop the write when no role is found. Task rule firstIf the task carries a transaction category, we use the role with the same name. In Production, 1,020 of 1,029 entries on Non-Billable tasks used that role. History nextThe person’s latest entry on the task, then the role most others use on it. Project team memberThe msdyn_projectteam row linked to the booking through _msdyn_projectteamid_value. Chargeable fallbacksThe latest chargeable role on the project, then anywhere. These skip non-chargeable roles so a billable task never inherits Non-Billable. Stop when emptyNo role means no entry. The day shows: "No role … Continue reading How to Create Draft Time Entries from Hard Bookings in Dynamics 365 Project Operations
How an Australian Commercial Laundry Provider Automated Customer Emails and Contract Change Notifications Using Dynamics 365 CRM Plugins
D365 CRM – Generating Customer Emails using Plugins for an Australian Commercial Laundry Provider | CloudFronts Summary When a contract start date moves, everyone involved needs to know: the customer who is expecting the service, and the sales representative who owns the quote. For a leading Australian commercial laundry and linen services provider, that conversation used to happen outside Dynamics 365 Sales. We delivered a Change Contract Date action on the quote. In a single step, a sales user enters the new start date and the reason, chooses whether to notify the customer, and selects Save & Send. A server-side Dataverse plugin updates the quote and its associated contract together, then generates and sends a fully tracked Dynamics 365 email to the customer, with the quote owner in copy. This article covers the business requirement, what we delivered, and how the plugin builds and sends the email, along with the good practices behind it and the outcome for the client. Table of Contents Business Requirement Problem Statement What We Addressed The Process The Change Contract Date Action Capturing the Change Why a Plugin for This Email? Handing the Request to the Server Updating the Quote and Contract Together Resolving the Sender and Recipients Composing the Email Creating and Sending the Email Confirming the Result Validations and Error Handling Good Practices We Followed Outcome for the Client Conclusion Frequently Asked Questions This Blog Explains How sales users change a contract start date and notify the customer in a single step. Why the email is generated by a server-side plugin rather than in the browser. How the plugin updates the quote and the contract together, so they never disagree. How the email’s sender, recipient, copy, and Regarding record are set in code. How the email is created, sent, and tracked in Dynamics 365. The good practices we followed, and what the change meant for the client. Read more about our journey with this customer here: View Case Study | Refer to my previous blog on generating emails using JavaScript for more context Business Requirement Our client is a leading Australian provider of commercial laundry, linen, and garment services, supplying motels, healthcare facilities, and businesses across the country. Their sales process runs on Dynamics 365 Sales, from lead to quote to signed contract. Once a quote is won and a contract is in place, the contract start date tells operations when deliveries begin. Start dates sometimes move: a new site opens later than planned, a customer needs extra time, or the depot schedule changes. The business asked for a simple way to handle this: Let a sales user change the contract start date directly from the quote, record why, and, if they choose, notify the customer automatically, keeping the quote owner informed. The new date must update both the quote and its associated contract. The reason for the change must be captured. The customer notification must be optional, because not every change is customer-facing. The email must come from the company’s shared mailbox and be tracked in Dynamics 365. The quote owner must always be copied. Problem Statement A date change involves several small steps that are easy to miss when done separately: update the quote, update the contract, write an email with the right references, address it to the right people, and keep a record of it. The aim was to turn those steps into one consistent action that: takes seconds for the sales user, always produces the same, professional customer email, and leaves a clear record on the contract of what changed, when, and why. What We Addressed One action on the quote A Change Contract Date button sits on the quote’s command bar, next to the other quote actions. Quote and contract stay in sync The new start date is written to the quote and its associated contract in the same operation. Optional customer notification A Notify the Customer checkbox lets the user decide whether the customer is emailed. Consistent, branded email Every notification uses the same layout, showing the quote, the contract, the previous and new dates, and the reason. Quote owner always informed The sales representative who owns the quote is copied on every customer notification. Fully tracked in Dynamics 365 The email is a Dynamics 365 activity linked to the contract, visible on its timeline. The Process From the user’s point of view, the whole change takes three clicks. Behind the scenes, the work is split between a small dialog in the browser and a plugin on the server: Quote → Change Contract Date ↓ Dialog: New Start Date + Reason + Notify the Customer ↓ Save & Send Custom action (Quote ID, New Start Date, Reason, Notify) ↓ Plugin (server-side, single transaction) 1. Validate the request 2. Update the quote’s contract start date 3. Update the associated contract’s start date 4. If Notify = Yes: • From → shared company mailbox • To → customer contact • CC → quote owner • Regarding → contract • Create email → SendEmail ↓ Success message to the user + email delivered to the customer 1. The Change Contract Date Action The action lives on the quote’s command bar alongside the other quote tools, so users find it where they already work. The Change Contract Date action on the quote command bar 2. Capturing the Change Selecting the button opens a Change Contract Start Date dialog, built as an HTML web resource and opened with Xrm.Navigation.navigateTo. It asks for three things: Field Purpose New Contract Start Date The date deliveries should now begin Reason for Change Recorded with the change and included in the email Notify the Customer Decides whether a customer email is sent The dialog captures the new date and the reason, and lets the user choose whether to notify the customer 3. Why a Plugin for This Email? In my previous blog, the email was generated in JavaScript, which suited an internal notification sent from the signed-in user. This scenario is different: the email goes … Continue reading How an Australian Commercial Laundry Provider Automated Customer Emails and Contract Change Notifications Using Dynamics 365 CRM Plugins
How a U.S.-Based Consumer Appliance Manufacturer Automated FedEx Shipment Creation, Cancellation, and Audit Trails
Completing the Return Logistics Loop: Creating, Cancelling, and Auditing FedEx Return Shipments in Dynamics 365 Customer Service | CloudFronts Summary In Part 1 of this series, a U.S.-based consumer appliance manufacturer moved FedEx return shipment creation into Dynamics 365 Customer Service. In Part 2, we automated tracking, so a case updates itself once the customer hands the package to FedEx. Part 3 covers the release that makes the integration production-grade. Consumer Care agents can now create and cancel FedEx return shipments from a single FedEx Shipments menu on the case. Every request is validated before it leaves Dynamics 365 and routed to the correct return warehouse automatically. Each request is recorded in a tamper-proof FedEx RMA Shipment Audit Log that stores exactly what was sent to FedEx and what came back. This article walks through the architecture: one unbound action, one plugin, two commands, and the design decisions behind validation, configuration, cancellation, customer communication, and auditability. Table of Contents Business Requirement Problem Statement What We Addressed The Process Creating a FedEx Return Shipment (RMA) The Customer’s Return Label Experience Cancelling a Shipment Auditing Every Shipment Process Handling Behind the Scenes Validations Authentication and Secure Configuration Good Practices We Followed Outcome for the Client Conclusion Frequently Asked Questions This Blog Explains How Consumer Care agents create and cancel FedEx return shipments from a single menu on the case. What the customer receives from FedEx, and how easy it is for them to print a return label. How the system checks each case before anything is sent to FedEx. How every shipment, cancellation, and FedEx response is recorded for future reference. The good practices behind the solution, and the outcome for the client. Read more about our journey with this customer here: View Case Study | Part 1: Automating Shipment Processing | Part 2: Automating FedEx Shipment Tracking Business Requirement Our client is a U.S.-based consumer appliance manufacturer whose Consumer Care team handles product returns, exchanges, and refunds every day. Their customer service runs entirely on Dynamics 365 Customer Service, and every return starts as a case. Earlier in this series, we brought FedEx return labels into Dynamics 365 (Part 1) and made shipment status visible on the case (Part 2). With those in daily use, the business wanted to take the next step: Give Consumer Care one simple place on the case to manage the entire return shipment, from creating it to cancelling it, with every action recorded and every customer kept informed. In practice, that meant: Creating a FedEx return shipment with a single click. Being able to cancel a shipment just as easily if plans change. Sending each return to the right warehouse automatically. Keeping a complete, trustworthy record of everything sent to and received from FedEx. Making it easy for agents to follow up with the customer. Problem Statement Returns are rarely a straight line. A customer may change their mind, an exchange may turn into a refund, or a product may need to go to the engineering team for review instead of the standard returns warehouse. To support that variety confidently, the team needed answers to everyday questions without leaving Dynamics 365: How do we reverse a shipment that is no longer needed? How do we make sure every return goes to the correct warehouse? How do we catch missing customer details before the request reaches FedEx? Where can anyone see exactly what was shipped, when, and what FedEx confirmed? The goal was to answer all of these within the case itself, in a way that any agent could use on day one. What We Addressed One-click shipment creation A FedEx return shipment is created straight from the case, and FedEx emails the customer a printable label. One-click cancellation A shipment can be cancelled from the same menu, and the case is updated automatically. Automatic warehouse selection The system picks the correct return warehouse based on the type of return. Built-in checks Missing or incorrect details are flagged in plain English before anything is sent to FedEx. Complete audit trail Every shipment and cancellation is recorded, including what FedEx confirmed and charged. Ready-to-send customer email A follow-up email is prepared on the case from an approved template, ready for the agent to review and send. The Process Everything starts from a single FedEx Shipments menu on the case, with two options: Option What it does Return Shipment with Audit Creates a FedEx return shipment for the case and emails the customer a return label Cancel current Shipment Cancels the shipment currently linked to the case At a glance, the journey looks like this: Agent opens the case ↓ FedEx Shipments → Return Shipment with Audit ↓ System checks the case (customer, address, phone, return type) ↓ FedEx creates the return shipment ↓ Customer receives the label by email → prints it → drops off the parcel ↓ Case shows the tracking number and a FedEx tracking link ↓ Draft follow-up email ready for the agent ↓ Audit log records the full details 1. Creating a FedEx Return Shipment (RMA) The agent opens the case, makes sure the return details are filled in, and selects FedEx Shipments → Return Shipment with Audit. A progress message shows while the request is processed. Within seconds, the agent sees a confirmation with: The case number The warehouse the parcel will be returned to The FedEx tracking number The case refreshes on its own, and the tracking number and a direct FedEx tracking link appear on the case. One click on the link opens the FedEx tracking page for that parcel. The case number is printed on the FedEx label as the return reference, so the warehouse can match the parcel to the case as soon as it arrives. Your browser does not support embedded video. Watch the recording on GitHub. Creating a FedEx return shipment from the case in a few clicks, from the confirmation message to the audit record To prevent duplicate labels, a new shipment cannot be created … Continue reading How a U.S.-Based Consumer Appliance Manufacturer Automated FedEx Shipment Creation, Cancellation, and Audit Trails
Engineer-to-Order with Dynamics 365: How Project Operations Handles Planning and Business Central Manages Execution
Engineer-to-Order with Project Operations Core and Business Central | CloudFronts Summary Engineer-to-Order (ETO) manufacturers sell a machine that has not been designed yet, then buy, build and bill against milestones that sit months apart. Running that entirely in an ERP leaves the Project Manager in spreadsheets. Running it entirely in a project tool leaves finance re-keying everything. This post shows a right-sized alternative for small and mid-sized manufacturers: Project Operations Core for planning and commercial control, Business Central for procurement, manufacturing and accounting, and a connector that owns the handoff between them. It covers the ownership split, an end-to-end walkthrough, six points to get right before any integration is built, and the outcomes to expect. On this page 01The business challenge 02Why ETO is a Project problem first 03The ownership split that works 04How the scenario is carried out 05Key points to get this right 06Outcomes 07FAQs 08Conclusion The business challenge Every time an Engineer-to-Order (ETO) manufacturer sits across the table from us, the conversation lands in the same place. The sales team quotes a machine that hasn’t been designed yet, engineering designs it after the order is won, procurement buys parts for that one order, the shop floor builds it, and finance bills against milestones that are months apart. Somewhere in between, the Project Manager is trying to answer a simple question: are we still making money on this job? The usual assumption is that this needs a heavy ERP with full-blown project manufacturing. In my experience with small and mid-sized manufacturers, that is not always true. Project Operations Core for planning and commercial control, connected to Business Central for procurement, manufacturing and accounting, handles an ETO scenario well, as long as the handoff between the two is designed properly. This article covers how we set this up, the key points that make or break it, and the outcomes you can expect. Why ETO is a Project problem first An ETO order behaves more like a project than a production run. There is no standard item to sell off the shelf. What you have is a customer requirement, a fixed-price commitment, a design phase, a mix of engineering labour and material, and a billing schedule tied to progress. When organizations try to run this entirely inside the ERP, the Project Manager ends up working in spreadsheets because ERP screens are built for accountants and warehouse users, not for planning a WBS or tracking a team’s effort. When they run it entirely in a project tool with no ERP link, finance re-keys everything and invoices go out late. The real question is not which system, but which system owns what. Get that boundary right and most of the complexity goes away. The ownership split that works Here’s how I sum up the split we recommend: Project Operations Core Sell and plan. Opportunity, fixed-price quote, project, WBS, team, estimates, approved cost budget, contract and billing milestones. This is where the Project Manager lives. Business Central Execute and account. Items, BOMs, routings, purchasing, warehouse, production orders, project accounting, customer invoicing, WIP and the general ledger. The connector The handoff. Moves the approved project baseline into Business Central and brings actuals back, so nobody re-keys anything. Project Operations Core does not come with customer-facing invoicing or an ERP back-end, which is exactly why it fits here. It is a lighter footprint for the Project Manager, and Business Central does what it is already good at. How the scenario is carried out To make this concrete, take a generic example. A machine builder, let’s call them Contoso Automation, receives a request from Fabrikam Packaging for a conveyor automation cell. Here’s how it flows end to end: Qualify and quote. The requirement comes in as an Opportunity in Project Operations. The team prepares a fixed-price Project Quote, backed by estimates for engineering, design, assembly and commissioning, plus the major material. Plan the project. Once the deal looks real, a Project is created with its WBS (Project Management, Mechanical Engineering, Controls Design, Build, Commissioning and so on), the project team and resource estimates. The Project Manager can plan in detail here without touching the ERP. Figure 1: Project WBS in Project Operations Core. The detailed plan stays with the Project Manager. Approve the baseline. The project budget is created from estimates across Time, Material and Expense, then submitted and approved. This approved cost budget becomes the baseline everything else is measured against. Figure 2: Cost budget lines by task across Time and Material, the baseline that gets released to ERP. Define billing. The quote is won and becomes a Project Contract with fixed-price billing milestones, for example Design Approval, Material Release, Machine Acceptance and Final Acceptance, each tied to the task it relates to. Figure 3: Milestone-based invoice schedule on the Project Contract, each milestone tied to a project task. Release to Business Central. When the project is marked ready, the connector creates the Project in Business Central with its Project Tasks, Budget Planning Lines from the approved budget and Billable Planning Lines from the milestones. Figure 4: The same budget arriving in Business Central as Budget Planning Lines against financial Project Tasks. Execute in Business Central. Project demand drives requisitions and purchase orders, receipts and put-away, then production orders with components and routings to build the sub-assemblies and the final cell. Bill and account. When a milestone is reached, the matching Billable Planning Line is used to raise the Sales Invoice. Actual costs post to the right Project Task and WIP is calculated in Business Central. Close the loop. Actuals and commitments flow back to Project Operations, so the Project Manager sees Budget vs Actual vs Forecast without asking finance for an export. Key points to get this right Having done a few of these, these are the points I’d insist on before a single integration is built: Do not copy the full WBS into Business Central. The detailed WBS belongs to the Project Manager. Map only the tasks that matter financially to Business … Continue reading Engineer-to-Order with Dynamics 365: How Project Operations Handles Planning and Business Central Manages Execution
Dynamics 365 SharePoint Integration: How to Display SharePoint Documents in a Custom Page Using Three Web API Calls
Summary Our team wanted to see a project’s files without leaving the Project Dashboard in our Team Hub, a set of custom pages we run inside Dynamics 365. The files live in SharePoint, and the Dynamics 365 form already shows them on its Documents tab. Our custom page had no such tab. We added a Documents tab that lists the same SharePoint files, using three calls to the Dataverse Web API and the session you already have. There’s no Power Automate flow, no SharePoint connector and no app registration. You open the tab, see each file with its type and a link, and open it in the browser. Table of Contents Summary→ Business Challenges→ Solution Overview→ Technical Approach→ Impact→ Conclusion→ Call to Action→ Business Challenges A team member checking a project in the Hub had to leave it to find the project’s documents. They opened the Project record, went to its Documents tab, then came back to the dashboard. The usual fixes to bring those files into a custom page add moving parts we didn’t want to own: A Power Automate cloud flow with the SharePoint connector, which adds a flow to build, run and maintain A direct call to Microsoft Graph or the SharePoint REST API, which needs an app registration and a second sign-in We wanted the files the form already shows, through the sign-in you already have. Solution Overview Dynamics 365 has server-based SharePoint integration. That’s the feature that connects a record to a SharePoint folder and fetches the files on your behalf. The form’s Documents tab uses it, and so can your own page. Our Documents tab asks Dataverse, the data layer behind Dynamics 365, for three things in a row: the project’s SharePoint folder, its full address and the files inside it. Dataverse talks to SharePoint for us. 1Find the folderLook up the SharePoint document location linked to the project 2Get the addressAsk for the full folder URL, the same one behind the form’s Open Location 3List the filesQuery the sharepointdocument virtual table with FetchXML We built the tab for desktop. At phone width (below 720 px) we hide it. Technical Approach You can follow these steps for any record that has a SharePoint document location. We used Project (msdyn_project) as the example. Find the document locationQuery sharepointdocumentlocations for an active row whose regarding record is your project. Take the oldest one. No row means the project has no SharePoint folder yet, and our tab says so. Get the folder addressCall RetrieveAbsoluteAndSiteCollectionUrl on that location. You get AbsoluteUrl and SiteCollectionUrl back. We use AbsoluteUrl for an Open in SharePoint button. Run this call and the file list in parallel. List the files with FetchXMLSend FetchXML to the sharepointdocument virtual table with a GET request. The query shape matters, see the code below. Show the outputRender each row with its name, a type badge, the modified date, who modified it and a link. Steps 1 and 2: location and folder addresshttp GET /api/data/v9.2/sharepointdocumentlocations?$select=sharepointdocumentlocationid&$filter=_regardingobjectid_value eq <projectId> and statecode eq 0&$orderby=createdon asc&$top=1 GET /api/data/v9.2/sharepointdocumentlocations(<locationId>)/Microsoft.Dynamics.CRM.RetrieveAbsoluteAndSiteCollectionUrl() // AbsoluteUrl looks like: // https://<tenant>.sharepoint.com/msdyn_project/<folder name>_<record id without dashes> Our first FetchXML was simpler. It used isrecursivefetch 0, no uitype, and a GUID without braces. Dataverse returned HTTP 400 with error 0x80040216, "An unexpected error occurred", from the plugin Microsoft.Crm.ObjectModel.SharePointDocumentService. We fixed it by copying the exact query shape the form’s own Documents grid sends. Step 3: sent as GET /api/data/v9.2/sharepointdocuments?fetchXml=<urlencoded>xml <fetch distinct="false" mapping="logical" page="1" count="100"> <entity name="sharepointdocument"> <attribute name="fullname"/> <attribute name="absoluteurl"/> <attribute name="filetype"/> <attribute name="modified"/> <attribute name="sharepointmodifiedby"/> <attribute name="isfolder"/> <attribute name="relativelocation"/> <order attribute="relativelocation" descending="false"/> <filter><condition attribute="isrecursivefetch" operator="eq" value="1"/></filter> <link-entity name="msdyn_project" from="msdyn_projectid" to="regardingobjectid" alias="bb"> <filter type="and"><condition attribute="msdyn_projectid" operator="eq" uitype="msdyn_project" value="{<projectId>}"/></filter> </link-entity> </entity> </fetch> 💡Three details that made it work Set isrecursivefetch to 1, add uitype on the link-entity condition, and wrap the GUID in braces. The output In our live test, one project returned 7 items and another returned 17, each with a name, file type and direct link. Two fixes came out of my own testing. Clicking absoluteurl downloaded Office files, so we add ?web=1 to file links and SharePoint opens them in the browser. Folders keep the plain link. A single grey icon for every file didn’t help anyone, so we show coloured badges from filetype: W for Word, X for Excel, P for PowerPoint, N for OneNote and PDF in red. We hide the folder column if every file sits in one folder. 1 Coloured type badges and direct links to each file The Documents tab listing a project’s SharePoint files. Speed shaped one decision. The file list took 2.1 s and 2.5 s in our tests, because Dynamics 365 asks SharePoint live each time. The location and URL calls take about 0.25 s. So we load files the moment you open the Documents tab and never on dashboard load. A skeleton shows while you wait, and we cache the result until you press Refresh. ⚠Limits We cap the list at 100 items per project and show a note to open SharePoint for the rest. We haven’t yet tested what a lower-privilege user sees. Impact Your team sees a project’s SharePoint files inside the custom page, with nothing new to run or sign in to. 3Dataverse Web API calls 0Cloud flows or connectors 0Extra sign-ins or app registrations ~2 sTo list files for one project We haven’t measured time saved. The change is in the mechanism. Before Leave the dashboard Open the Project record Go to its Documents tab Files sat one form away After Open a tab Open the Documents tab in the Hub Click a file to open it in the browser 3 calls through your D365 session Takeaways if you want the same thing in your own page: Copy the query the form’s Documents grid sends before you write your own FetchXML Load SharePoint files on demand, since each fetch goes to SharePoint live Add ?web=1 to Office file links so they open in the browser Conclusion Dynamics 365 already talks to SharePoint for you. We … Continue reading Dynamics 365 SharePoint Integration: How to Display SharePoint Documents in a Custom Page Using Three Web API Calls
How a Leading North American Commercial Vehicle Manufacturer Surfaced Custom Warehouse Data on the Work Lines Form in Dynamics 365 Finance & Supply Chain Management Using an X++ Display Method
WHSWorkLine Display Method Summary The All work lines form in D365 Finance & Operations only shows what the WHSWorkLine table already knows. When the warehouse floor needs a piece of operational context that lives in a different table entirely, the usual instinct is to add a field, which means touching the base table, or worse, customizing a standard form. This post walks through a smaller, upgrade-safe alternative: a table extension that adds a cached display method to WHSWorkLine, sourced from a custom table, and surfaced as a grid column on the standard work lines form, with no schema change and no per-row database hit on every refresh. The example comes from an engagement with a North American truck manufacturer, where warehouse supervisors needed a load-staging reference visible directly on the work line grid instead of a separate lookup screen. On this page 01The business challenge 02Why a table extension 03The display method 04What SysClientCacheDataMethod buys you 05Wiring it onto the form 06Performance notes and gotchas 07Where else this pattern fits 08FAQs 09Conclusion The business challenge Warehouse supervisors were working two screens at once: the standard All work lines form to track pick and put progress, and a second lookup to check which loading door or staging note applied to each line. Every work line already carried that answer; it just lived in a custom table keyed off the same WorkId and LineNum that WHSWorkLine uses. The fix didn’t need a new field, a new form, or a modification. It needed one existing screen to know how to ask a second table a question it already had the key for. Why a table extension, not a table field Three reasons ruled out adding a real field to WHSWorkLine: It’s a Microsoft table. Extending it directly means overlayering, which blocks upgrades and one-version-back servicing. The data isn’t really work-line data. It’s staging metadata that happens to be looked up by work line. Storing it separately keeps the source table’s purpose clean. A display method needs no migration. Chain of Command ([ExtensionOf]) attaches new behavior to the table without altering its schema, so the change ships and rolls back like any other extension package. That leaves one job: write a static display method on a table extension class that reads the custom table and returns a string, then tell the form which column should call it. The display method The extension class attaches to WHSWorkLine. The method itself is a plain lookup against the custom table on the composite key WorkId + LineNum: WHSWorkLine_Extension.xpp [ExtensionOf(tableStr(WHSWorkLine))] final class WHSWorkLine_Extension { [SysClientCacheDataMethod] public static display str customWorkLineData(WHSWorkLine _whsWorkLine) { WHSWorkLineCustom workLineCustom; select firstOnly Data from workLineCustom where workLineCustom.WorkId == _whsWorkLine.WorkId && workLineCustom.LineNum == _whsWorkLine.LineNum; return workLineCustom.Data; } } Nothing exotic: a display method is just a method whose return value a form can bind a column to. Because it’s static and takes the buffer as a parameter, the compiler treats it as a table-level display method rather than a form data-source method, which is what makes it reusable from more than one place. What SysClientCacheDataMethod buys you Without that attribute, a grid re-evaluates a display method every time the row is redrawn: scrolling, sorting, refreshing, even just switching focus between forms can trigger it again. On a work line grid that can hold several thousand rows during a shift, that’s a select statement repeated far more often than the underlying data ever changes. SysClientCacheDataMethod tells the client: compute this value once per record, cache it locally, and reuse the cached value instead of calling back to the server on every redraw. “A cached display method turns a per-scroll database call into a one-time lookup per record. That’s the difference between a grid that feels instant and one that stutters under load.” Wiring it onto the form The method lives on the table; the form still needs to be told to use it. Three steps, all done as an extension of the standard form: 1Create a form extension for the work lines form and open its design in the tree. 2Add a new String Control under the grid’s data source and set its Data Method property to customWorkLineData, not Data Source / Data Field, since the value isn’t a stored field. 3Set a Label and Width, position the column where the floor team expects it, then build and synchronize. Performance notes and gotchas Client-side caching means stale values are possible. If another user updates the custom table after the grid has already cached a row’s value, that column won’t refresh until the form re-queries the record. Fine for staging notes that don’t change mid-shift; not fine for anything that must be live to the second. Keep the lookup narrow. select firstOnly on an indexed composite key (WorkId, LineNum) is cheap. A display method with a join, a loop, or an unindexed filter defeats the point of caching it. No custom data doesn’t mean an error. Most work lines in this scenario won’t have a row in the custom table; the method should just return an empty string, which it does here by construction. Rule of thumb: if the source data can change while the form is open and the user needs to see that change immediately, don’t cache it. Cache display methods for data that’s set once and read many times. Where else this pattern fits Nothing here is specific to warehouse work lines. The same three pieces (a table extension, a cached display method, and a form control bound by Data Method) apply anywhere a grid needs to show a value that’s derived or looked up rather than stored on the row itself: sales order lines pulling a commitment note, purchase lines surfacing a vendor scorecard flag, or any list page where the “one more column” request would otherwise mean modifying a Microsoft table. FAQs 1Does this require modifying the WHSWorkLine table? No. [ExtensionOf(tableStr(WHSWorkLine))] uses Chain of Command to attach the method without an overlayer or schema change, so it ships as a standard … Continue reading How a Leading North American Commercial Vehicle Manufacturer Surfaced Custom Warehouse Data on the Work Lines Form in Dynamics 365 Finance & Supply Chain Management Using an X++ Display Method
Every Target Traced to a Deal: Dynamics 365 Sales Visibility for an Australian Commercial Laundry Provider
Summary Sales managers at an Australian garment and linen laundry provider could see team targets on Dynamics 365 Goal charts, but they could not open the deals behind any figure. We paired each goal with Opportunity charts that share its rollup query filters. Managers now go from a missed target to the specific opportunities on one dashboard. Each dot on a Goal Progress chart is a field on a single goal record, so a click has nothing to group by. We added three system charts on the Opportunity table beside the Goal charts on the Sales Manager dashboard, with no custom code. This work builds on our wider Dynamics 365 Sales engagement with the same client. Read the full case study: Transforming Sales Operations for a Leading Australian Linen & Garment Services Provider. GA Garment and linen laundry services organizationAnonymised Industry Commercial laundry and linen services Region Australia Users Sales managers and their salespeople KPIs tracked Signed contracts and new contract revenue StackDynamics 365 SalesGoals and goal metricsRollup queriesSystem chartsModel-driven dashboards Table of Contents Summary→ Business Challenges→ Solution Overview→ Technical Approach→ Impact→ Conclusion→ Next Step→ Business Challenges The Sales Manager dashboard told managers how far each salesperson was from target, and then stopped. Each salesperson carried two annual goals, one for signed contracts and one for new contract revenue, and the two Goal Progress charts plotted them well. The trouble started with the follow-up question about which deals sat behind a low Actual. A dot that led nowhere. Clicking Target, Actual or In-progress on a Goal chart did not open a single opportunity Filters rebuilt by hand. Managers left the dashboard, opened an opportunity view, and set owner and close date range themselves for every salesperson they wanted to check Two totals for one question. The hand-built view often disagreed with the goal’s Actual, and nobody could say which one was right No way to tell weak sales from bad data. A low Actual could mean few contracts signed, or a signed contract whose opportunity was never closed as Won One-to-ones that opened with data gathering. The first part of each coaching session went on assembling the list of deals to talk about Managers liked the Goal charts and did not want them replaced. The brief was narrow: keep the target view, and add a direct route from it to the opportunity records. Solution Overview We rebuilt the Sales Manager dashboard so the Goal charts keep showing progress and a second row of Opportunity charts explains it. Both rows count the same deals, because each Opportunity chart uses the same owner, status and close date rules as the goal it sits beside. The dashboard now reads top to bottom in the order a manager works through a review. Top row, the targets. Goal Progress charts for signed contracts and new contract revenue, one category per salesperson Middle row, the deals. Won Opportunities by Owner, Actual Revenue by Owner, and Open Pipeline by Owner and Stage. A manager clicks a salesperson’s bar, regroups it by month, account or sales stage, and opens the records Bottom row, the follow-up. The Team KPI Goals grid for opening any goal record, and an open pipeline view for deals that still need action 1 2 3 Goal Progress charts show Target, Actual and In-progress for each salesperson Opportunity charts with drill-down by owner, month, account and stage Team KPI Goals grid and open pipeline view for follow-up The redesigned Sales Manager dashboard, read from targets at the top to follow-up at the bottom Everything on the page is standard Dynamics 365 Sales configuration. There is no plugin, no JavaScript and no custom control to carry through future releases. Technical Approach The design rests on one mechanism: the rollup query that feeds a goal’s Actual is also the filter for the chart that explains it. The rest of this section covers why the Goal chart cannot do the job alone, how we wired the two together, and where the numbers can still drift apart. Why can’t you drill down on a Dynamics 365 Goal chart? A Goal Progress chart has nothing underneath a data point to drill into. It is a multi-series chart on the Goal table, where each category on the horizontal axis is one goal record and each dot is a column on that record: Target, Today’s Target, Actual or In-progress. Drill-down in a model-driven app regroups the rows inside a chart segment by another column. One goal record is one row. The won opportunities that produced the Actual live in a different table, and a system chart cannot drill across tables. Where does a goal’s Actual figure come from? The Actual and In-progress values come from rollup queries attached to the goal, evaluated against the goal owner’s records for the goal period. That makes the rollup query the only reliable definition of which deals count. TargetGoal recordOne per salesperson, per KPI, per year RuleRollup queryOwner, status and close date in period RecordsOpportunity tableWon and open opportunities ExplainOpportunity chartSame filter, drill-down enabled ReviewSales Manager dashboardTarget and deals on one page We wrote the rules down once and used them in both places. The table below is the mapping we configured for the two KPIs. Goal value Records counted Date tested against the goal period Matching chart Signed Contracts, Actual (count) Won opportunities owned by the goal owner Actual Close Date Won Opportunities by Owner New Contract Revenue, Actual (money) Won opportunities owned by the goal owner, summed on Actual Revenue Actual Close Date Actual Revenue by Owner In-progress, both KPIs Open opportunities owned by the goal owner Est. Close Date Open Pipeline by Owner and Stage Goal values and the Opportunity charts that mirror them, from this project Build sequence Confirm the goal metric and its rollup fieldsFor each metric, check the source table, the status that counts, and the date column used for Actual and for In-progress. These three settings decide everything the charts must copy. Attach a rollup query to each … Continue reading Every Target Traced to a Deal: Dynamics 365 Sales Visibility for an Australian Commercial Laundry Provider
Why Is Consumption Quantity Showing Zero in Dynamics 365 Business Central? A Pharma Manufacturing Case
Summary A pharmaceutical manufacturer running Microsoft Dynamics 365 Business Central found that the raw and packing material (RM/PM) consumption quantity on a released production order stayed at zero in the Production Journal. After reviewing the case with Microsoft Support, we confirmed it was standard behavior, not a bug. The production location requires warehouse picks, and Business Central fills consumption only from picks that have been registered. Three setup gaps were blocking the pick: no lot-tracked stock in the pick bin, the same bin used for Take and Place, and a missing number series for registered picks. We fixed all three and wrote the process as three rules the team now follows on every production order. Table of Contents Introduction How Business Central Fills Consumption Quantity Why the Pick Could Not Be Registered Rule 1: Confirm Inventory for Every Component Rule 2: Record Missing Stock with a Positive Adjustment Rule 3: Create and Register the Warehouse Pick The Result in the Production Journal Quick Troubleshooting Checklist Business Impact Frequently Asked Questions Conclusion Introduction In Microsoft Dynamics 365 Business Central, the Production Journal is where planners post output and the consumption of raw and packing materials. Usually the consumption quantity is filled in for you. When it shows zero, the order cannot be completed correctly. This is what a pharmaceutical manufacturer we work with ran into. A production order had been released, the components were listed, and the stock was physically on the shop floor. Yet every RM/PM line in the Production Journal showed a consumption quantity of 0. Figure 1: The symptom: every RM/PM consumption line in the Production Journal shows 0. 0 Consumption quantity on every RM/PM line 3 Setup gaps blocking the warehouse pick 3 Simple rules that fixed it We reviewed the scenario with Microsoft Support and confirmed that Business Central was working as designed. The real issue was a missing step earlier in the process. The Lesson At a location that requires warehouse picks, consumption follows the pick. No registered pick means no consumption quantity. How Business Central Fills Consumption Quantity How Business Central calculates consumption depends on the warehouse setup of the location on the production order. The client’s production location was set up to require warehouse picks for production consumption. No Pick Required Expected Quantity Consumption is proposed from the expected quantity on the component lines, based on the BOM and the order quantity. Pick Required Picked Quantity Consumption is proposed only from the quantity that has been picked and registered to the To-Production bin. Until a pick is registered, the quantity stays at 0. How consumption is filled at a pick-required location Stock in Pick Bin → Create Warehouse Pick → Register Pick → Qty. Picked Updated → Consumption Filled Figure 2: Qty. Picked on the components is 0, so there is nothing for the Production Journal to consume. Key Insight A zero consumption quantity is a symptom, not the problem. The question to ask is why the pick was not registered. Why the Pick Could Not Be Registered We worked back from the Production Journal to the warehouse pick and found three gaps. Any one of them is enough to stop a pick from being registered. 01 No Stock in the Pick Bin Some RM/PM items had no inventory, with lot number and expiry date, in the bin used for picking. Nothing was available to pick. 02 Same Bin for Take and Place The bin holding the stock was also set as the To-Production bin. A pick moves stock from one bin to another, so these must be different. 03 Missing Number Series Registered Whse. Pick Nos. was not set up correctly in Warehouse Setup, so a registered pick could not be numbered. Figure 3: The original pick: Take and Place pointed to the same bin, and two components had no stock to take. From these findings we wrote three rules. The team follows them in order whenever the consumption quantity is zero. Rule 1: Confirm Inventory for Every Component If the consumption quantity is zero, start by checking stock. Without inventory in the right location and bin, nothing can be picked. Search for Items and open the RM/PM item. Check Inventory for the production location. Open Bin Contents and check the bin you pick from, for example STORE-B1. For lot-tracked items, confirm the stock in that bin has a lot number and expiry date. Figure 4: Item Ledger Entries confirmed two components had never been received at the production location. Figure 5: Bin Contents of the stock bin show which components are available to pick. Good to Know Stock in a different bin, or at a different location, does not count. The pick only looks in the bins of the location on the production order. Rule 2: Record Missing Stock with a Positive Adjustment If the material is physically on the shelf but not in the system, record it with a positive adjustment in the right bin and with the right lot details. Search for Item Journals. Create a line with Entry Type Positive Adjmt., the Item No., the Location Code, the Bin Code you pick from (for example STORE-B1), and the Quantity. Open Item Tracking Lines and assign the Lot No. and Expiration Date. Post the journal. Open Bin Contents again and confirm the stock now shows in the bin. Figure 6: Lot-tracked items need a Lot No. and Expiration Date before the journal will post. Figure 7: A positive adjustment line posting the missing stock into the stock bin. Use with Care A positive adjustment is only for stock that physically exists but is not yet recorded. RM/PM stock should normally come in through a purchase receipt or a transfer order. Rule 3: Create and Register the Warehouse Pick Once stock is available, the pick needs two different bins: one to take from and one to place into. This needs a one-time setup per location, followed by the same steps on each production order. One-Time Setup per Location Location … Continue reading Why Is Consumption Quantity Showing Zero in Dynamics 365 Business Central? A Pharma Manufacturing Case
